SET CYG_PATH=D:\cygwin\bin
SET RLS_PATH=W:\02-project\msp430irtouch\9release\all-fw-v0.86
SET APP_PATH=%cd%
SET EXE_PATH=%APP_PATH%\Debug\Exe

mkdir %RLS_PATH%\

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_XIA,' irtouch.h
call airtouch_msp430.bat
mkdir %RLS_PATH%\xia5
move %EXE_PATH%\* %RLS_PATH%\xia5

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_SHANG6,' irtouch.h
call airtouch_msp430.bat
mkdir %RLS_PATH%\shang6b
move %EXE_PATH%\* %RLS_PATH%\shang6b

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_PETER6,' irtouch.h
call airtouch_msp430.bat
mkdir %RLS_PATH%\peter6a
move %EXE_PATH%\* %RLS_PATH%\peter6a

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_LGTEST6,' irtouch.h
call airtouch_msp430.bat
mkdir %RLS_PATH%\lgtest6
move %EXE_PATH%\* %RLS_PATH%\lgtest6

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_1301S6A,' irtouch.h
call airtouch_msp430.bat
mkdir %RLS_PATH%\1301s6a
move %EXE_PATH%\* %RLS_PATH%\1301s6a

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_PETER6L,' irtouch.h
call airtouch_stm8.bat
mkdir %RLS_PATH%\peter6l
move %EXE_PATH%\* %RLS_PATH%\peter6l

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_ZHX6L,' irtouch.h
call airtouch_stm8.bat
mkdir %RLS_PATH%\zhx6l
move %EXE_PATH%\* %RLS_PATH%\zhx6l

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_ZHOU6L,' irtouch.h
call airtouch_stm8.bat
mkdir %RLS_PATH%\zhou6l
move %EXE_PATH%\* %RLS_PATH%\zhou6l

%CYG_PATH%\perl -pi -e 's,^#define HW_VERSION.*$,#define HW_VERSION HW_AVT_ZHOU6LX,' irtouch.h
call airtouch_stm8.bat
mkdir %RLS_PATH%\zhou6lx
move %EXE_PATH%\* %RLS_PATH%\zhou6lx

%CYG_PATH%\unix2dos irtouch.h
